package com.simblog.common;

import org.apache.commons.lang3.StringUtils;

public class ClientParameter {
	private String client_type;
	private String client_version;
	private String imei;
	private String os_version;
	private String timestamp;
	private String token;

	public ClientParameter() {

	}

	public String getClient_type() {
		return client_type;
	}

	public void setClient_type(String client_type) {
		this.client_type = client_type;
	}

	public String getClient_version() {
		return client_version;
	}

	public void setClient_version(String client_version) {
		this.client_version = client_version;
	}

	public String getImei() {
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getOs_version() {
		return os_version;
	}

	public void setOs_version(String os_version) {
		this.os_version = os_version;
	}

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	/**
	 * 拼接参数和值
	 */
	public String getSpliceParameter() {
		StringBuffer sb = new StringBuffer();
		sb.append("client_type" + client_type);
		sb.append("client_version" + client_version);
		sb.append("imei" + imei);
		sb.append("os_version" + os_version);
		sb.append("timestamp" + timestamp);
		if (!StringUtils.isEmpty(token)) {
			sb.append("token" + token);
		}
		return sb.toString();
	}

}
